import request from '@/utils/request'

// 查询合催收订单详情
export function selectOrderInfo(query) {
    return request({
        url: '/proceed/main/selectOrderInfo',
        method: 'get',
        params: query
    })
}

// 司法诉讼申请详情
export function judicialLitigationDetails(id) {
    return request({
        url: `/proceed/main/${id}`,
        method: 'get'
    })
}

// 司法诉讼列表
export function litigationLitigation(query) {
    return request({
        url: `/proceed/main/list`,
        method: 'get',
        params: query
    })
}


// 司法诉讼保存
export function litigationAdd(data) {
    return request({
        url: '/proceed/main',
        method: 'post',
        data: data
    })
}


// 提交撤销申请
export function submitRevokeApplication(data) {
    return request({
        url: '/proceed/main/revokeSubmit',
        method: 'post',
        data: data
    })
}

// 发起变更诉讼申请查询
export function changeLitigation(query) {
    return request({
        url: `/proceed/main/selectChangeInfo`,
        method: 'get',
        params: query
    })
}
// 发起变更诉讼车牌号查询费用
export function changeLitigationCarInfo(query) {
    return request({
        url: `/proceed/main/getChangeCost`,
        method: 'get',
        params: query
    })
}

// 提交变更诉讼
export function submitChangeLitigation(id) {
    return request({
        url: `/proceed/change`,
        method: 'post'
    })
}

//变更诉讼详情
export function changeLitigationInfo(data) {
    return request({
        url: `/proceed/change/${data}`,
        method: 'post',
        data: data
    })
}

// 诉讼处理列表
export function proceedHandle(query) {
    return request({
        url: `/handle/proceedHandle/list`,
        method: 'get',
        params: query
    })
}


// 诉讼处理详情
export function proceedHandleDetails(id) {
    return request({
        url: `/handle/proceedHandle/${id}`,
        method: 'get'
    })
}

// 获取催收单列表
export function getCollectionList(query) {
    return request({
        url: `/collectionManage/collectionManage/listForJp`,
        method: 'get',
        params: query
    })
}

